// import Vue from 'vue'
// import Router from 'vue-router'
// Vue.use(Router)

// export default new Router({
//     // mode: 'history',
//     routes: [
//         {
//             path: '/',
//             name: 'Index',
//             component: () => import('@/pages/index/index.vue')
//         }, 
//         {
//             path: '/invite',
//             name: 'Invite',
//             component: resolve => require(['@/pages/invite/invite.vue'],resolve)
//         },
//     ]
// })




import Vue        from 'vue'
import Router     from 'vue-router';
Vue.use(Router)

//购买下单首页
const Index                 = () =>         import('../pages/index/index.vue');
//历史订单列表
const OrderList             = () =>         import('../pages/orderList/orderList.vue');
//下线管理邀请记录
const InviteList            = () =>         import('../pages/inviteList/inviteList.vue');
//出入金 交易管理
const InTrade               = () =>         import('../pages/inTrade/inTrade.vue');
//返佣记录
const BackList              = () =>         import('../pages/backList/backList.vue');
//历史订单详情
const OrderDetail           = () =>         import('../pages/orderDetail/orderDetail.vue');
//国内实名认证
const GoRealName            = () =>         import('../pages/goRealName/goRealName.vue');
//国外实名认证
const GoRealName2           = () =>         import('../pages/goRealName2/goRealName2.vue');
//实名认证状态
const RealNameStatus        = () =>         import('../pages/realNameStatus/realNameStatus.vue');
//选择付款页面
const BuyType               = () =>         import('../pages/buyType/buyType.vue');
//选择收款页面
const SellType              = () =>         import('../pages/sellType/sellType.vue');
//出售页面
const Sell                  = () =>         import('../pages/sell/sell.vue');
//设置收款方式
const SetUserDropInfo       = () =>         import('../pages/setUserDropInfo/setUserDropInfo.vue');
//下单后倒计时
const MakeOrder             = () =>         import('../pages/makeOrder/makeOrder.vue');
//划转(仅支持返佣划转)
const Transfer              = () =>         import('../pages/transfer/transfer.vue');
//所有类型划转
const Transfer2             = () =>         import('../pages/transfer2/transfer2.vue');
//划转历史记录
const History               = () =>         import('../pages/history/history.vue');
//个人中心更多页面
const MyMore                = () =>         import('../pages/myMore/myMore.vue');
//个人中心设置页面
const MySetting             = () =>         import('../pages/mySetting/mySetting.vue');
//上传银行流水截图
const CardVerify             = () =>         import('../pages/cardVerify/cardVerify.vue');
//关于我们页面
// const About                 = () =>         import('../pages/about/about.vue');
//成为超级合伙人说明页
const Besuper               = () =>         import('../pages/besuper/besuper.vue');
//申请超级合伙人页面
const Apply                 = () =>         import('../pages/apply/apply.vue');
//编辑用户昵称
const EditNickName          = () =>         import('../pages/editNickName/editNickName.vue');
//视频播放
const Video                 = () =>         import('../pages/video/video.vue');
//404页
const None                  = () =>         import('../pages/404/404.vue');
//下线管理用户界面
const Invite                = () =>         import('../pages/invite/invite.vue');
//等级规则说明
const AboutMember           = () =>         import('../pages/aboutMember/aboutMember.vue');
//秒息宝服务协议
const MoneyAgreement        = () =>         import('../pages/moneyAgreement/moneyAgreement.vue');
//红包首页
const Redhome               = () =>         import('../pages/redhome/redhome.vue');
//红包详细
const RedDetails            = () =>         import('../pages/redDetails/redDetails.vue');
//红包历史
const RedHistory            = () =>         import('../pages/redHistory/redHistory.vue');
//兑换记录
const RedExchangeHistory    = () =>         import('../pages/redExchangeHistory/redExchangeHistory.vue');
//兑换页面
const RedExchange           = () =>         import('../pages/redExchange/redExchange.vue');
//口令红包
const RedMessageOpen        = () =>         import('../pages/redMessageOpen/redMessageOpen.vue');
//新手任务领大奖
const Newertask             = () =>         import('../pages/newertask/newertask.vue');
//任务中心
const MissionCenter         = () =>         import('../pages/missionCenter/missionCenter.vue');
//今日交易明细  今日入金明细   今日出金明细
const InviteDetail          = () =>         import('../pages/inviteDetail/inviteDetail.vue');
//任务中心-中文
const TaskPage             = () =>         import('../pages/taskPage/taskPage.vue');

export default new Router({
    // mode:'history',
    routes: [
        { path: '/',                  name: 'index',            component: Index,               meta:{keepAlive:false} }, 
        { path: '/orderList',         name: 'orderList',        component: OrderList,           meta:{keepAlive:false} }, 
        { path: '/inviteList',        name: 'inviteList',       component: InviteList,          meta:{keepAlive:false} }, 
        { path: '/inTrade',           name: 'inTrade',          component: InTrade,             meta:{keepAlive:false} }, 
        { path: '/backList',          name: 'backList',         component: BackList,            meta:{keepAlive:false} }, 
        { path: '/orderDetail',       name: 'orderDetail',      component: OrderDetail,         meta:{keepAlive:false} }, 
        { path: '/goRealName',        name: 'goRealName',       component: GoRealName,          meta:{keepAlive:false} }, 
        { path: '/goRealName2',       name: 'goRealName2',      component: GoRealName2,         meta:{keepAlive:false} }, 
        { path: '/realNameStatus',    name: 'realNameStatus',   component: RealNameStatus,      meta:{keepAlive:false} }, 
        { path: '/buyType',           name: 'buyType',          component: BuyType,             meta:{keepAlive:false} }, 
        { path: '/sellType',          name: 'sellType',         component: SellType,            meta:{keepAlive:false} }, 
        { path: '/sell',              name: 'sell',             component: Sell,                meta:{keepAlive:false} }, 
        { path: '/setUserDropInfo',   name: 'setUserDropInfo',  component: SetUserDropInfo,     meta:{keepAlive:false} }, 
        { path: '/makeOrder',         name: 'makeOrder',        component: MakeOrder,           meta:{keepAlive:false} }, 
        { path: '/transfer',          name: 'transfer',         component: Transfer,            meta:{keepAlive:false} }, 
        { path: '/transfer2',         name: 'transfer2',        component: Transfer2,           meta:{keepAlive:false} }, 
        { path: '/history',           name: 'history',          component: History,             meta:{keepAlive:false} }, 
        { path: '/myMore',            name: 'myMore',           component: MyMore,              meta:{keepAlive:false} }, 
        { path: '/mySetting',         name: 'mySetting',        component: MySetting,           meta:{keepAlive:false} }, 
        { path: '/cardVerify',        name: 'cardVerify',       component: CardVerify,          meta:{keepAlive:false} }, 
        // { path: '/about',             name: 'about',            component: About,               meta:{keepAlive:false} }, 
        { path: '/besuper',           name: 'besuper',          component: Besuper,             meta:{keepAlive:false} }, 
        { path: '/apply',             name: 'apply',            component: Apply,               meta:{keepAlive:false} }, 
        { path: '/moneyAgreement',    name: 'moneyAgreement',   component: MoneyAgreement,      meta:{keepAlive:false} }, 
        { path: '/editNickName',      name: 'editNickName',     component: EditNickName,        meta:{keepAlive:false} }, 
        { path: '/video',             name: 'video',            component: Video,               meta:{keepAlive:false} }, 
        { path: '/invite',            name: 'invite',           component: Invite,              meta:{keepAlive:false} }, 
        { path: '/aboutMember',       name: 'aboutMember',      component: AboutMember,         meta:{keepAlive:false} }, 
        { path: '/redhome',           name: 'redhome',          component: Redhome,             meta:{keepAlive:false} }, 
        { path: '/redetails',         name: 'redetails',        component: RedDetails,          meta:{keepAlive:false} }, 
        { path: '/redhistory',        name: 'redhistory',       component: RedHistory,          meta:{keepAlive:false} }, 
        { path: '/redexchangehistory',name: 'redexchangehistory',component: RedExchangeHistory, meta:{keepAlive:false} }, 
        { path: '/redexchange',       name: 'redexchange',      component: RedExchange,         meta:{keepAlive:false} }, 
        { path: '/redmessageopen',    name: 'redmessageopen',   component: RedMessageOpen,      meta:{keepAlive:false} }, 
        { path: '/newertask',         name: 'newertask',        component: Newertask,           meta:{keepAlive:false} }, 
        { path: '/missionCenter',     name: 'missionCenter',    component: MissionCenter,       meta:{keepAlive:false} }, 
        { path: '/taskPage',          name: 'taskPage',         component: TaskPage,            meta:{keepAlive:false} }, 
        { path: '/inviteDetail',      name: 'inviteDetail',     component: InviteDetail,        meta:{keepAlive:false} }, 
        { path: '/404',               name: 'none',             component: None,                meta:{keepAlive:false} }, 
        { path: '*',                  redirect: '/404' }, 
    ]
})
